package mars.ns.statechangers
import mars.ns.core.Node
import mars.ns.Simulation

trait ConnectedStateChange[T <: Node] extends StateChange[T] {

	override def checkStateChange(node: T,simulation : Simulation[T]) { 
		val list = simulation.connect(simulation.network, node)
		list.foreach(arg => simulation.notifyLinkAdded(node,arg.getLinkedTo().asInstanceOf[T],arg.getType))
	}
      
}